package CalculateDemo01;

import java.util.Scanner;

public class Calculate {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        System.out.println("请输入第一个整数:");
        int number1 = scanner.nextInt();

        System.out.println("请输入第二个整数:");
        int number2 = scanner.nextInt();

        int sum = number1 + number2;

        int difference = number1 - number2;

        System.out.println("两个数的和为:" + sum);
        System.out.println("两个数的差为:" + difference);

        scanner.close();
    }
}
